<?php
include_once "DBCORE.cls.php";
	class db_order
	{
		private $tablename="tblodersdetail";
		private $db;
		public function __construct()
		{
			$this->db= new DBCORE();
			$this->db->db_connect('localhost','root','','restaurant');
			$this->db->db_query("SET NAMES 'UTF8'");
		}
		//
		public function select($id)
		{
			$id = !Empty($id) ? " WHERE OrderID='{$id}'": "";
			$myStrSQL = "SELECT * FROM {$this->tablename} {$id}";
			$data = $this->db->db_fetch_assoc($this->db->db_query($myStrSQL));
			return $data;
		}		
		
	}

?>